package com.jk.springbootes.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * @author 赵优秀
 * @version 1.0.0
 * @ClassName TestEntity.java
 * @Description TODO
 * @createTime 2021年08月29日 19:33:00
 */
@Data
@Document(indexName ="zyx",type = "action")
public class TestEntity {
    @Id
    @Field(type = FieldType.Integer)
    private  Integer  id;
    @Field(type = FieldType.Text)
    private  String   name;
    @Field(type = FieldType.Text)
    private  String   sex;
    @Field(type = FieldType.Integer)
    private  Integer  age;
}
